package cn.bxshey.modules_user.service.impl;

import cn.bxshey.modules_user.mapper.UserMapper;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;

/**
 * @作者：不想说话而已
 * @Date：2024/1/22 17:56
 */

@Service
public class AsyncService {

    @Resource
    UserMapper userMapper;

    @Async
    public void recordLoginTime(Long uid){
        userMapper.updateLoginTimeById(new Date(),uid);
    }

}
